package ptaTest2;

import java.util.*;
public class Test22 {

	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner in = new Scanner(System.in);
		int n,x,y;
		while (in.hasNextInt())
		{
			n=in.nextInt();
			x=in.nextInt();
			y=in.nextInt();
		StringBuilder num=new StringBuilder();
		for(int i=0;i<n;i++)
		{
			num.append(i);
		}
		String zi=num.substring(x, y);
		System.out.println(zi);
		}

	}

}
